-- GENERATED SPELL FOR [The Ocular] --


function spell0_29747(pUnit, Event) --@Deathly Stare,n/a--
pUnit:FullCastSpellOnTarget(55269,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29747', 1000, 1)
end

function Sorts_29747(pUnit, Event)
local choix_sorts_29747 = math.random(0, 0)
if choix_sorts_29747 == 0 then
pUnit:RegisterEvent('spell0_29747', 1, 1)
end
end

function mob29747_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29747', math.random(1500, 3000), 1)
end

function mob29747_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29747_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29747_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29747, 1, 'mob29747_Action')
RegisterUnitEvent(29747, 2, 'mob29747_Leave')
RegisterUnitEvent(29747, 3, 'mob29747_Kill')
RegisterUnitEvent(29747, 4, 'mob29747_Die')
